/**
 * File: AbstractReader.java
 * Created by: mhaimel
 * Created on: 18 Aug 2009
 * CVS:  $Id: AbstractReader.java,v 1.1 2009/08/27 14:52:44 mhaimel Exp $
 */
package uk.ac.ebi.curtain.util.io;

import java.io.File;
import java.util.Iterator;

/**
 * @author mhaimel
 *
 */
public abstract class AbstractReader<T> implements Iterable<T> {

	private File in;

	public AbstractReader(File in) {
		this.in = in;
	}

	public Iterator<T> iterator() {
		return _buildIter(in); 
	}

	protected abstract Iterator<T> _buildIter(File inFile);
}
